﻿using System;
using System.Collections.Generic;

namespace Sustainalytics.Entities
{
    [Serializable]
    public class CriteriaTypeThree : BaseCriteria
    {
        public List<string> CollectionItems { get; set; }
        public int CollectionItemsTotalCount { get; set; }
        public List<string> SelectedItems { get; set; }
        public bool IsScreenable { get; set; }
        public Guid CriteriaLevel3Id { get; set; }

        public static CriteriaTypeThree CriteriaTypeThreeWithGraph(TemplateCriteria templateCriteria, List<string> criteriaTypeThreeData, int totalCount)
        {
            return new CriteriaTypeThree
            {
                Id = templateCriteria.Id,
                CriteriaType = CriteriaTypeEnum.CriteriaType3,
                Name = templateCriteria.Name,
                SelectedItems = null,
                CollectionItems = criteriaTypeThreeData,
                CollectionItemsTotalCount = totalCount,
                IsScreenable = templateCriteria.IsScreenable,
            };
        }
    }
}
